package com.atguigu.edu2021.mock.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 支付信息表
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class PaymentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对外业务编号
     */
    private String outTradeNo;

    /**
     * 订单编号
     */
    private Long orderId;

    /**
     * 支付宝交易编号
     */
    private String alipayTradeNo;

    /**
     * 支付金额
     */
    private BigDecimal totalAmount;

    /**
     * 交易内容
     */
    private String tradeBody;

    /**
     * 支付状态
     */
    private String paymentStatus;

    /**
     * 支付状态
     */
    private String paymentType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 回调信息
     */
    private String callbackContent;

    /**
     * 回调时间
     */
    private Date callbackTime;


    @Override
    public String toString() {
        return "PaymentInfo{" +
        "id=" + id +
        ", outTradeNo=" + outTradeNo +
        ", orderId=" + orderId +
        ", alipayTradeNo=" + alipayTradeNo +
        ", totalAmount=" + totalAmount +
        ", tradeBody=" + tradeBody +
        ", paymentStatus=" + paymentStatus +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", callbackContent=" + callbackContent +
        ", callbackTime=" + callbackTime +
        "}";
    }
}
